package com.edu.scau.service;



import com.edu.scau.dao.implement.UserDaoImpl;
import com.edu.scau.entity.User;

public class LoginService {
	
	
	public Boolean  LoginCheck(int id,String pw) {
		UserDaoImpl userDao = new UserDaoImpl();
		User user=userDao.get(id);
		if(user!=null){
			if(pw.equals(user.getPassword()))
				return true;
			else return false;
		}
		else return false;
	}
	
	
}
